package com.it.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;

/**
 * @author 汤北寒
 */
@Slf4j
public class SimpleParamJob implements Job {

    /**
     * 若参数变量名修改 QuartzJobController中也需对应修改
     */
    private String params;

    public void setParams(String params) {
        this.params = params;
    }

    @Override
    public void execute(JobExecutionContext context) {
        log.info(" Job Execution key：" + context.getJobDetail().getKey());
        log.info("参数:{}", params);
    }
}
